package com.sdy.service;

import com.alibaba.fastjson.JSONObject;
import com.sdy.po.Notic;
import com.sdy.po.Parm;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public interface NoticService {

    void insertNotic(Notic notic);

//    void insertNotic(String dataState, Integer companyId, Parm parm, JSONObject data);
    void markAsRead(Integer noticId);

    Notic getOneById(Integer noticId);

    List<Notic> getListByCompanyId(Integer companyId);

    List<Notic> getAll();

    Boolean sendNotic(Notic notic,String authority);
}
